﻿<Page
    x:Class="TISensorTag.Settings"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:TISensorTag"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">

    <Grid>
        <StackPanel VerticalAlignment="Top" Orientation="Vertical">
            <Grid Margin="0,5">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="130"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>

                <TextBlock Grid.Column="0" VerticalAlignment="Center" Text="Account Name:" Style="{StaticResource BodyTextBlockStyle}"/>
                <TextBox Grid.Column="1" VerticalAlignment="Center" Text="{Binding accountName, Mode=TwoWay}"/>
            </Grid>

            <Grid Margin="0,5">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="130"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>

                <TextBlock Grid.Column="0" VerticalAlignment="Center" Text="Account Key:" Style="{StaticResource BodyTextBlockStyle}"/>
                <TextBox Grid.Column="1" VerticalAlignment="Center" Text="{Binding accountKey, Mode=TwoWay}"/>
            </Grid>

            <Grid Margin="0,5">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="160"/>
                    <ColumnDefinition Width="100"/>
                </Grid.ColumnDefinitions>

                <TextBlock Grid.Column="0" VerticalAlignment="Center" Text="Transfer Interval:" Style="{StaticResource BodyTextBlockStyle}"/>
                <TextBox Grid.Column="1" VerticalAlignment="Top" Text="{Binding timerInterval, Mode=TwoWay}"/>
            </Grid>

        </StackPanel>
    </Grid>


    <Page.BottomAppBar>
        <CommandBar>
            <AppBarButton x:Uid="btnOK" x:Name="btnOK" Label="OK" Icon="Accept" Click="btnOK_Click"/>
        </CommandBar>
    </Page.BottomAppBar>

</Page>
